﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="methodinfo.aspx.cs" Inherits="orgman_methods_methodinfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>当前评估方法：<asp:DataList ID="DataList1" runat="server" 
            DataSourceID="SqlDataSource2" RepeatDirection="Horizontal" RepeatLayout="Flow" 
            ShowFooter="False" ShowHeader="False">
        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
            Font-Strikeout="False" Font-Underline="False" ForeColor="Red" />
        <ItemTemplate>
            <asp:Label ID="methodnameLabel" runat="server" 
                Text='<%# Eval("methodname") %>' />
        </ItemTemplate>
        </asp:DataList>
        ，<asp:HyperLink ID="HyperLink1" runat="server">返回</asp:HyperLink>
    </div>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
        SelectCommand="SELECT [methodname] FROM [method] WHERE ([methodid] = @methodid)">
        <SelectParameters>
            <asp:QueryStringParameter Name="methodid" QueryStringField="methodid" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <div class="boot">
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="levelid" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None" Width="700px" CssClass="dataTable">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="levelid" HeaderText="levelid" InsertVisible="False" 
                    ReadOnly="True" SortExpression="levelid" Visible="False" />
                <asp:BoundField DataField="levelname" HeaderText="等级名称" 
                    SortExpression="levelname" />
                <asp:BoundField DataField="judgement" HeaderText="评语" 
                    SortExpression="judgement" />
                <asp:BoundField DataField="methodid" HeaderText="methodid" 
                    SortExpression="methodid" Visible="False" />
                <asp:BoundField DataField="levelvalue" HeaderText="分值" 
                    SortExpression="levelvalue" />
            </Columns>
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
            SelectCommand="SELECT * FROM [level] WHERE ([methodid] = @methodid)">
            <SelectParameters>
                <asp:QueryStringParameter Name="methodid" QueryStringField="methodid" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
